<template>
    <div id="difexp">
      {{ name + '1' }}
      {{ name == 'wo'? 'true': 'false' }}
      {{ if1(name) }}
    </div>
</template>

<script>
    export default {
        name: "differential-expression",
      data(){
          return{
            name:'黑马程序员'
          }
      },
      methods:{
          'if1':function (str) {
            return str == 'wo'
          }
      }
    }
</script>

<style scoped>

</style>
